import { StrictMode } from "react";
import { createRoot } from "react-dom/client";

import { App } from "./app";
import { initStore } from "./store";

import "./index.css";

const [rootStore, StoreContext] = initStore();

createRoot(document.getElementById("root")!).render(
  <StrictMode>
    <StoreContext.Provider value={rootStore}>
      <App />
    </StoreContext.Provider>
  </StrictMode>
);
